package top.huhuiyu.spirngboot2.total.service;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import top.huhuiyu.spirngboot2.total.base.BaseDataResult;
import top.huhuiyu.spirngboot2.total.entity.TbFile;

import javax.servlet.http.HttpServletResponse;

public interface FileService {
    void download(Integer fid, HttpServletResponse response);

    @Transactional
    BaseDataResult<TbFile> upload(TbFile tbFile, MultipartFile fileinfo);
}
